﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;
namespace BLL
{
    public class InterestRatesHandler
    {
         // Handle to the InterestRates DBAccess class
        InterestRatesDBAccess objInterestRates = null;

        public InterestRatesHandler()
        {
            objInterestRates = new InterestRatesDBAccess();
           
        }

        public List<InterestRates> GetInterestRatesList(String CONNECTION_STRING)
        {
            return objInterestRates.GetInterestRatesList(CONNECTION_STRING);
        }

        public InterestRates GetInterestRates(string rateType, String CONNECTION_STRING)
        {
            return objInterestRates.GetInterestRates(rateType, CONNECTION_STRING);
        }

        public InterestRates GetInterestRatesDetails(string InterestRatesID, String CONNECTION_STRING)
        {
            return objInterestRates.GetInterestRatesDetails(InterestRatesID, CONNECTION_STRING);
        }

        public bool DeleteInterestRates(int InterestRatesID, String CONNECTION_STRING)
        {
            return objInterestRates.DeleteInterestRates(InterestRatesID, CONNECTION_STRING);
        }

        public bool UpdateInterestRates(InterestRates obj, String CONNECTION_STRING)
        {
            return objInterestRates.UpdateInterestRates(obj, CONNECTION_STRING);
        }

        public bool AddNewInterestRates(InterestRates obj, String CONNECTION_STRING)
        {
            return objInterestRates.AddNewInterestRates(obj, CONNECTION_STRING);
        }
    }
}
